package com.hkh.erp.common.api;

/**
 * 请求状态
 */
public enum RespStatus {

    SUCCESS(0,"成功"),
    ERROR(1,"失败"),
    TOKEN_EXPIRED(2,"token过期"),
    TOKEN_INVALID(3,"token非法"),
    USER_INVALID(4,"非法用户");

    private int code;

    private String describe;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    RespStatus(int code, String describe){
        this.code = code;
        this.describe = describe;
    }
}

